<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
    <meta content="text/html;charset=utf-8"></meta>
    <title>淘宝首页</title>
    <script src="/jquery.min.js"></script>
    <script src="/jquery.cookie.min.js"></script>

</head>
<body>
<div class="container">
    <h1>淘宝首页</h1>
    <h2>下面为登录信息:</h2>
    <label>cookie:</label><span id="cookie"></span>
</div>
<script>
    $(function () {
        $("#cookie").html($.cookie("tb_nk"));
    })
</script>

</body>


</html>